
import { getStore } from '@/util/store'
export const option = function(){
  return {
    labelWidth: 120,
    emptyBtn: false,
    submitBtn: false,
    detail: ['view'].includes(this.type),
    column:[
      {
        label: '分级名称',
        span: 8,
        prop: 'classifyName',
        maxlength: 100,
        rules: [
          {
            required: true,
            message: '请输入分级名称',
            trigger: 'blur'
          }
        ]
      },
      {
        label: '分级编号',
        span: 8,
        prop: 'classifyCode',
        maxlength: 100,
        disabled: true
      },
      {
        label: '申请人',
        span: 8,
        prop: 'applyPerson',
        maxlength: 100,
        disabled: true,
        value: getStore({ name: 'userInfo' }).user_name
      },
      {
        label: '申请时间',
        span: 8,
        prop: 'applyDate',
        type: 'date',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        maxlength: 100,
        disabled: true,
      },
      {
        label: '备注',
        prop: 'remark',
        type: 'textarea',
        maxlength: 500,
        minRows: 4,
        maxRows: 5,
        span: 24
      },
    ]
  }
}